package com.hjc.demo.nacos.controller;

import com.hjc.demo.common.service.HelloService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @DubboReference
    private HelloService helloService;

    @RequestMapping("hello")
    public String hello() {
        return helloService.sayHello("Dubbo");
    }
}
